package entity;

import java.io.Serializable;

import javax.inject.Named;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToOne;

/**
 * Entity implementation class for Entity: PayMethod
 *
 */
@Named(value="payMethod")
@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class PayMethod implements Serializable {

	   
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int Id;
	private static final long serialVersionUID = 1L;
	@OneToOne
	private Employee employee;
	
	public PayMethod() {
		super();
	}   
	public int getId() {
		return this.Id;
	}

	public void setId(int Id) {
		this.Id = Id;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
   
}
